<div id="header">

<table border="0" cellpadding="0" cellspacing="0">
	<tr>
	
	<td id="headerLeft">
		<h1 style="display:inline;"><a href="index.php">corkboardit</a></h1>
	</td>
	
	<td id="headerRight">
	
		<?php
		
		if (isset($_SESSION["user"]))
			
			echo '
				<a href="index.php">' . $_SESSION["user"]['email'] . ' (' . $_SESSION['user']['name'] . ')</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="index.php?logout">Logout</a>
			';
			
		else echo '
				<a href="index.php">Home</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="login.php">Login</a>
			';
		
		?>
	
	</td>
	
	</tr>
</table>

</div>

<div id="mainContent">
